<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
	
    <h:body>	
    	<ui:composition template="/user/template.xhtml">
    		    <h1>Kontakty KFS</h1> 
                <table>
                	<tr>
                		<td>Krajský fotbalový svaz Královéhradeckého kraje</td>
                		<td rowspan="5" ><img height="80" src="../img/logo.jpg" /></td>
                	</tr>
                	<tr>
                		<td>Habrmanova 192</td>
                	</tr>
                	<tr>	
                		<td>P.O.Box 501 01 HK</td>
                	</tr>
                	<tr>
                		<td>IČO: 70945420</td>
                	</tr>
                	<tr>
                		<td>DIČ: CZ70945420, bankovní spojení: 174698795/0300</td>
                	</tr>
                </table>
                <table>
                  <tr>
                      <th>Jméno</th>
                      <th>Funkce</th>
                      <th>Telefon</th>
                      <th>E-mail</th>
                  </tr>
                  <c:forEach var="contact" items="#{contactBean.contactListKfs}" varStatus="status">
                   <c:if test="#{status.even}">
                    <tr>
                      <td class="jmeno2">
                      <a href="kontaktdetail.xhtml?id=#{contact.id}" style="color:black;">#{contact.surname} #{contact.firstname}</a>
                      </td>
					  <td>#{contact.place}</td>
                      <td>#{contact.phone}</td>
                      <td>#{contact.email}</td>
                    </tr>
                   </c:if>
                   <c:if test="#{!status.even}">
                    <tr class="suda">
                      <td class="jmeno2">
                      <a href="kontaktdetail.xhtml?id=#{contact.id}" style="color:black;">#{contact.surname} #{contact.firstname}</a>
					  </td>
					  <td>#{contact.place}</td>
                      <td>#{contact.phone}</td>
                      <td>#{contact.email}</td>
                    </tr>
                   </c:if>
                  </c:forEach> 
                </table>
    	</ui:composition>
	</h:body>
</html>